import defaultHttp from "@/utils/request.js";
export const userAdd = (data) => {
  return defaultHttp({
    url: "/user/add",
    method: "post",
    data,
  });
};

export const userEdit = (data) => {
  return defaultHttp({
    url: "/user/edit",
    method: "post",
    data,
  });
};
export const userList = (data) => {
  return defaultHttp({
    url: "/user/list",
    method: "post",
    data
  });
};
export const userDelete = (data) => {
  return defaultHttp({
    url: "/user/delete",
    method: "post",
    data,
  });
};
